<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <link  rel="stylesheet" type="text/css" th:href="@{/static/login.css}">
</head>

<body>

<div id="body">
    <div id="content">
        <form th:action="@{/user/login}"  method="post">
            <span th:text="#{login_username}"></span><input type="text" name="username"><br/>
            <span th:text="#{login_password}"></span><input type="password" name="password"><br/>
            <button type="submit"><span th:text="#{login_submit}"></span></button>
        </form>
        <hr/>
        <a th:href="@{/login(l=zh_CN)}" th:text="#{login_Chinese}"></a>
        &nbsp;|&nbsp;
        <a th:href="@{/login(l=en_US)}" th:text="#{login_English}"></a>
        <h5 style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></h5>
    </div>
</div>
</body>
</html>